Adds validation check for question groups, questions and answer options when publishing a version