Fix for the 'logout' option in the user menu.