changed how formData works for multiple inputs (select, checkbox etc)