Fixed small bug in login