Added Cookie handler
Fixed the cookie issue