Added backbone validation, and integrated it with the registration form.