updated formData object and reset functions