add externalFormValidation hook