Fixed bug with login.