validate code for node.