getting the login process working