Fixed issues during login.