fixed bug with auth library to not redirect when visiting the main web page.