text: 
  $(".create-form").submit(function (event) {
  
      event.preventDefault();
      var formInputs = $(".create-form").serializeArray();
  
      var leaseDetails = {
          to: formInputs[0].value,
          from: formInputs[1].value,
          price: formInputs[2].value,
          paymentFrequency: formInputs[3].value
      }
  
      var parkingSpotDetails = {
          unit: formInputs[4].value,
          streetNumber: formInputs[5].value,
          streetName: formInputs[6].value,
          city: formInputs[7].value,
          postalCode: formInputs[8].value
  
      }
  
      var aboutYourself = {
          firstName: formInputs[9].value,
          lastName: formInputs[10].value
  
      }
  
  
  
      var data = {
          leaseDetails: leaseDetails,
          parkingSpotDetails: parkingSpotDetails,
          aboutYourself: aboutYourself
      };
  
  
  
      // adding geocode call
          $.ajax('/vendorInput', {
          type: 'POST',
          data: JSON.stringify({
              leaseDetails: leaseDetails,
              parkingSpotDetails: parkingSpotDetails,
              aboutYourself: aboutYourself
          }),
          contentType: 'application/json'
      })
      .then(function(data,err){
          console.log(data)
          //window.location.href='/vendorconf'
      })
  
      });
  
  
      
  
  
  
  
  
  