Adding a validator to transitions