main: use same arity for validation functions when streaming file fields