validate passes file spec to validator fns.