Changed routerProvider to stateProvider to prevent change of route upon authorization failure