Fixed the login system