Glass formation in ionic systems