Not allowing connection of invalid nodes.