Using range validation instead of custom validation.