William Z. Foster, candidate for President