Switched login to controllerAs syntax