Fix update_nodes function

Update nodes function add new nodes to cluster so that it should check if the new nodes exists in cluster.