add log out and status code in sign up