added authentication, and jshint