The same way it has qualified white men for the office since the days of yore.
Look at any inner city in this Country if you want to see why qualification matter.
Any one.
The powers not delegated to the United States by the Constitution, nor prohibited by it to the States, are reserved to the States respectively, or to the people