date range validation