checking the cookie