Added validation of node name.