fixes bug in community navigation function where the logout anchor wasn't closed