add grunt jshint
change validation logic