Change authService to a factory so that it can deliver an isLoggedIn state.