userDate;
    if(correctOrigin && correctDestination && correctDate){
      for(var i=0;i<flightResults.length; i++){
        createFlightElem(flightResults[i]);
        if(bookAction === 'shortest' &&  flightResults[i].duration < shortest)
          shortest = flightResults[i].duration;
        if(bookAction === 'cheapest' && flightResults[i].price < cheapestPrice)
          cheapestPrice = flightResults[i].price;
      }
    } else {
      // if any of the data is incorrect, generate dynamic/fake results 