fixed error with login