$\varphi:R\rightarrow S$ is said to be a ring homomorphism if, $R,S$ are rings and $\varphi$ is a map such that:
$\varphi(r_{1}+r_{2})= \varphi(r_{1})+\varphi(r_{2})$,
$\varphi(r_{1}.r_{2})= \varphi(r_{1}).\varphi(r_{2})$.
$\varphi(1_{R})= 1_{S}$
In the definition of a ring isomorphism, the third condition isn't stated, but here, we need the third condition. My question is, why do we need to state explicitly that the identity in $R$ is mapped to the identity in $S$. Can't we just deduce it from the definitions of a ring homomorphism?
EDIT: In reference to Anurag A's comment that rings are sometimes defined without the existence of unity, all the rings I am looking at will have unity in them, so if the answers are restricted to the case for when they do have unity, that would be extremely helpful
No, $ℤ → ℤ × ℤ,~x ↦ (x,0)$ is not considered to be a ring homomorphism as it doesn’t preserve the identity element, yet is additive and multiplicative.
But an additive and multiplicative map of rings with identity elements $φ \colon R → S$ is at least guaranteed to be a ring homomorphism if it is surjective. That’s why you don’t need to require the identity elements to be preserved in the definition of a ring isomorphism – it’s automatically given.
This is because $\mathrm{img}~φ ⊂ S$ is a ring with identity $φ(1_R)$ as you can easily check for yourself. If $φ$ is surjective, it follows that $φ(1_R)$ is an identity for $S$ and from the uniqueness of identity elements $φ(1_R) = 1_S$.