fixed the failed login