By this point, anyone running for office who espouses racism, bigotry, or shows religious favoritism should be disqualified.
It is clear now that people will vote for others who share their values or lack of values. As a nation, we need to maintain a standard which engenders good ethical human values, which means acceptance of all of the people in the world, without exceptions. Then every person can be esteemed and judged on the basis of their deeds only.
We need standards for candidates and if people demonstrate that they have these standards, then there is a greater chance that they will be of a proper frame of mind to govern. This could be decided by taking a vote in the next election. If a majority agree with this as a standard, then it becomes law.