ADD: function to validate transition now configurabel by parameter