Before I updated router if User wasn't logged in it redirected to login page, else it redirected to home page and user couldn't see home until he is not logged in. Where I'm I wrong and why I get this error since I included provider in my bootstrap method as provider?