Make sure dates are not in the future.