[ZD#732337] improve form validation

The form didn't validate all of the required fields so we were getting ajax failures on ticket creation. I updated the validation code to apply to all fields with a required property.

/cc @maximeprades