check for correct input file format