Fixing warning when login.