Made getFormData return the object.