Add basic form validation.