Let $\phi: \mathbb{Z}_7 \times \mathbb{Z}_7 \to \mathbb{Z}_7 \times \mathbb{Z}_7$ be a homomorphism such that $\phi^5 = \text{id}$. Show that $\phi$ is the identity.
My attempt: Since $\ker(\phi) \subset \ker(\phi^2)\subset \cdots \subset \ker(\phi^5) = 0$, it follows that $\phi$ is injective. Since $|\mathbb{Z}_7\times \mathbb{Z}_7|$ is finite, $\phi$ is automatically an isomorphism.
Then $\phi$ should map a subgroup to a subgroup. Consider $\phi(\mathbb{Z}_7 \times 0)$, then it should be mapped to $\mathbb{Z}_7 \times 0$ or $0 \times \mathbb{Z}_7$. Without loss of generality, we consider the former case. In particular, $\phi(1,0)$ should be a generator for $\mathbb{Z}_7 \times 0$. Suppose $\phi(1,0) = (a,0)$. Then $(1,0) = \phi^5(1,0) = \phi^4(a,0) = \phi^3(a^2,0) = \cdots = (a^5,0)$. Thus, $a^5 = 7k+1$ for some $k \in \mathbb{Z}$. By testing $a \in \mathbb{Z}_7$, we see that the only possibility is that $a = 1$. The discussion for $\phi(0,1)$ is similar.
Could anyone help me take a look at my attempt? Is my approach reasonable, and is there any better method to do this problem?