Simple form validation.