add range validation to select field type