fixed the login controller