range validation