added missed global definition which made the authenticated users log out automatically