File validator