field.reuqired error in validate() [FIXED]