Fix date range validation