Adding check to redirect to login if logged out and on default root