This type of validation should be done in a validation method `_registration_timeout_changed` method that traitlets will call automatically each time the value is set.