refactored signup. login user after sign up.