check input file type