improved validateit.js

Improved Indentation, added comments in validateit.js