Added logout functionality to context menu.