logout button will show only on index.