added isValidTriggerId to Input