Empties value of input when file isn't read