moving login status to root template