renamed client to dbClient to avoid confusion between the browser and database
specified which port the server is running on and renamed client to dbClient to avoid confusion between the browser and database
code review and cleanup
removed debugging code
validated confirm parameters
moved saltHash and corresponding components to authenticator
fixed regexes