Add logout button to main template.