Added additional validations

Also, minified js.
Merge remote-tracking branch 'origin/master' into gh-pages