fix: status code is 302 now because of login
jshint fix: removed console