Add validator for file format