Let $(B, +, \cdot)$ be a ring (not necessarily unital!) with the property that every $x \in B$ satisfies $x \cdot x = x$.
How does one show that the kernel of any non-zero homomorphism of rings $h:B\rightarrow \mathbb{Z}_2$ is a maximal ideal of $(B, +, \cdot)$?
I'm looking for an elementary proof, not requiring anything more than the definitions of a ring, of an ideal, and of $(B, +, \cdot)$, and, if necessary, the easily shown facts that $x + x = 0$ and $x\cdot y = y\cdot x,\,\forall\, x,y \in B$.