Add validation filter

These filters allow or disallow a filtered file to be written to disk.