Fixing login glitches