Redirecting to root if not logged in