fix dashboard does not render when user is logged