Added some more form validation to the registration page.