Remove logout button from menu bar.
Fix two PHP notices.