Added date validation to detirmine if the selected date is in the future or not