ISSUE #7. Cookie has been added, but it doesn't work correctly