Added validation checking for creation of new nodes.