Check if user is logged in for some pages