Checks that dates are not in the future