switch header depending on login state