completed form that adds input to an array and saves the data to a file