"Cogito ergo sum" does not prove a person's existence.
"I think, therefore I am" assumes that thinking of a thought leads to existence of that thought.
For thought is of the mind, and the mind the reality of the brain.
Thinking only proves the existence of the mind.