Adding Login/Logoff to meny bar or sidebar

How do I add a register here, login or logout option to the main menu or a sidebar?