added user registration

Added user registration as a part of the new client registration.
Adding some error checking to processing.
string escaping

Added string escaping for user inputs
Sessions

Added sessions