Modified input slightly to allow the user to enter any input file name they want and then check if the file entered if valid.