code cleanup, menu detects user status now, login menu item added
cosmetic changes and typos