Added a session variable to get name for logout instead