complete the signup and logout