usginmodels.validate_file not used correctly