[OE-3562] added validation so dates cannot be in the future.