Check to make sure node1 and node2 are in range