More server side clean up. Added error handling and form validatino reporting (albeit ugly) to registration form