Check if a cookie is valid. Done.