fixed login for user.