validating and processing the signup form
processing login and logout requests