built form submission logic

built out functionality for form submission. There is an issue with our api, it is not accepting JSON Data, our format is incorrect or it is rejecting it