fixed the login system issue