added setFieldData method for validator