Registration form validation.