added validation for bookings in the past
merging changes