steps for sign up and logout