If you copy the following code into the same file as your loginController code, does it work?
app.factory('testCtrl', function (){
return {
login: function(){
console.log("DO SOMETHING GOOD WITH REGARDS TO LOGGING IN");
}
};
});
Then inject testCtrl into your controller. If it works, then We need to see your service.