Validate form field type

* Validate form field type