I'm writing a small AngularJS app that has a login view and a main view, configured like so: $routeProvi