Added some basic javascript to validate the registration form.