Added registration form validation.