Use either one, but I wouldn't capitalize it in the president . I realize that the googled results are a mixture of capitalized and lower case P s, but was President suggests that it is the person's precise title, while was the president suggests that it is merely the position.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.