refactored submission to provide a central request function and avoid adding form-data package (which is already part of node-request)