made the login work