Issue #1 fix

adding condition for cookie key check, added '{' and '}' for if condition