Check input file correctness.