Moved the formdata setting to be inside of the submit callback.