Add simple form validation.