added global auth check to set partials.header view