added test for logging in an existing user