Is there an example of a ring $S$ with identity $1_S$ containing a non-trivial subring $R$ which itself has an identity $1_R$, but $1_R\neq 1_S$ (or equivalently $1_S\notin R$). I'd also like to know under what conditions the identities have to be equal. I know they must be equal if $S$ has no zero divisors, since for every $r\in R$ we have $(1_S-1_R)r=0$
In other words: Is the category of unital rings with identity-preserving morphisms a full subcategory of the category of rings (where morphism are only required to respect addition and multiplication)?
Hints:
$$S:=\left\{\;\begin{pmatrix}x&y\\z&w\end{pmatrix}\;;\;\;x,y,z,w\in\Bbb R\;\right\}\;,\;R:=\left\{\;\begin{pmatrix}a&0\\0&0\end{pmatrix}\;;\;\;a\in\Bbb R\;\right\}$$
$$1_R=\begin{pmatrix}1&0\\0&0\end{pmatrix}$$