If I understand right, you need logout button on your site? You can create a menu for the log out from Joomla administrator > Menus. Create a new menu and select Users > Log Out. Assign this menu item to the menu you want.
If this is not what you meant, let me know.