check if cookie isn't set before logging success
Merge pull request #2 from SweBarre/log_success_fix

check if cookie isn't set before logging success