Grouping login/logout buttons into a single template