Fixed bug in login.