Revert "Revert "Fix user's displayName being overwritten by (old) cookie""

This reverts commit eba35d28cd974507f9e81e15430d3d33dbbd9973.