public boolean checkValidMenu(int menuIndex) {
        if(isLoggedIn)
            if(menuIndex > 0 && menuIndex <= 7)
                return true;

        if(menuIndex > 0 && menuIndex <= 5)
           return true;
        return false;
    }