updated login to get an active menu item