Some checking of input for node creation