Fixed bug with login