change syntax in sendFormData function