Add validation of triggers and their default scripts.