Automagic form validation.