Fixed a minor misspelled variable issue, refactored some code
Added support to display error messages on the register form
Added the registration processing, the site is now complete.