Add name validation to network/component names.