Add validation for node values