Updated error messages for invalid input file