fix the login problem