Improved date range validation