compiler: set required in field.validation correctly