adding validation for field value linking it to its field type counter part