fix the login error