conditonally showing login vs. logout in header; adding redirect upon login