test successfully logs in existing user works