Fixes in jshint.rc file, added error managment, fixed login bug