Fix a bug in node name validation

Hello @kylehardgrave, 

Please review the following commits I made in branch 'nick-validation'.

cb7502c7be913155b123851516466ed2cee35141 (2013-07-11 14:25:54 -0400)
Fix a bug in node name validation


R=@kylehardgrave