Fixed a small bug with login