barack obama is chosen as a candidate