I am trying a question identical to the one asked here;
A proof that shows surjective homomorphic image of prime ideal is prime
Restating;
''Let $A, B$ be commutative rings with $1_{A}, 1_{B}$. Suppose that $\mathfrak{p} \neq (1)$ is a prime ideal in $A$ with $\mathfrak{p} \supseteq \ker{\varphi}$ where $\varphi: A \rightarrow B$ is a surjective homomorphism. I want to show $\varphi(\mathfrak{p})$ is a prime ideal.''
I have a proof which is quite elementary as follows;
Suppose $st \in \phi(\mathfrak{p})$ for $s,t \in B$. Then $\phi$ is onto so we have $x,y \in A$ s.t. $\phi(x)=s, \phi(y)=t$. So we have $\phi(xy)=\phi(x)\phi(y)=st$, which was assumed to be in $\phi(\mathfrak{p})$. So $xy \in \mathfrak{p}$ and $\mathfrak{p}$ is prime so either $x$ or $y$ is in $\mathfrak{p}$. Then one of $\phi(x)=t$ or $\phi(y)=s$ is in $\phi(\mathfrak{p})$.
A couple of things are bothering me;
-I never use unitality - EDIT; I do indeed.
-I never use the condition that the prime ideal contains ker($\phi$).
I've read the linked post several times and it's still unclear to me what's going on here.
EDIT: So I guess I never checked that $\phi(\mathfrak{p})$ is not all of $B$ but this is clear since that implies that $1_A$ in $\mathfrak{p}$?
Thanks in advance.