Replacing direct use of XHR with AngularJS $http, initial work on login system