check if cookie isn't set before logging success

put it in master