Lightweight form validation.