Add some file validation