edited the login class