check cookie if logged