validate node, write