Add register form validation.