added cookieVerification method