fix the login issue