The Constitution requires that the President should be a born American citizen, which Obama was due to his mother. He was also automatically an American citizen due to his birth in the USA.

Ted Cruz was born in Canada. John McCain was born in Panama. The only reason Obama's nationality was questioned was the fact that he was black.