Use range checking for validation.