removed the preRenderView check if user is logged in.