fixed the login bug