changed app.js and index.html
loginService now is $http request-agnostic, the requests are always in the controller