Added logic to check session before the menu items are displayed