updated infile validator