The idea of my proof was that if we have a neutral element in a ring than it is unique. I have showed that
$$\phi(a)=\phi(a)\cdot \phi(1_A)=\phi(1_A)\cdot \phi(a).$$
For all elements that are in the imageset of $\phi$, $\phi(1_A)$ acts as a neutral element, how can I argue that because of that $\phi(1_A)$ must be a neutral element of all elements in $B$?
No, you cannot argue like that. Just consider$$\begin{array}{rccc}\phi\colon&\mathbb R&\longrightarrow&\mathbb R^{2\times2}\\&x&\mapsto&\begin{bmatrix}x&0\\0&0\end{bmatrix},\end{array}$$which is a ring homomorphism. However,$$\phi(1)=\begin{bmatrix}1&0\\0&0\end{bmatrix}\neq\begin{bmatrix}1&0\\0&1\end{bmatrix}=\operatorname{Id}.$$Note, however, that it is usually part of the definition of ring homomorphism that, when we are dealing with rings with unity, $\phi$ must be such that $\phi(1_Q)=1_B$.