add validation and set the id and name to the field_name