added login API support
added submenu for logged in users
properly logging out