add validate for trigger switch