fixed login glitch