added logic to sign in a user after they sign up. also added a test to validate the new logic