rewrite checkFormField