creating user session for sign up and login