fix form validation for ec