Implements min and max range validations