Writes validations for all forms.