added stateMock module bc ui-router interferes with  when running specs. Doesn't work, so Im checking for every request in spec
LoginCtrl uses $state from ui-router instead of $location so we can use ui-router