Show that in $\mathbb{Z_p^\star}$ (where p is prime under the binary operiation multiplication), an element $\bar{x}$ is its own inverse if and only if $\bar{x} = \bar{1},\overline{p-1}$
This question was in my last homework, and my solution was as follows:
$\overline{x^2} = \bar{1}$ $\iff \overline{x^2-1} = \bar{0} \iff \overline{(x-1)(x+1)} = \bar{0}$
I then concluded that either $\overline{x-1}$ or $\overline{x+1}$ is $\overline{0}$ however, the marker stated I needed more justification from the of:
$\iff \overline{(x-1)(x+1)} = \bar{0}$
to
either $\overline{x-1}$ or $\overline{x+1}$ is $\overline{0}$
I asked my lecturer at the end of one lecture and he said that you need to justify that either $p$ divides $\overline{x-1}$ or p divides $\overline{x+1}$, but I don't understand how p divides either, or how that justifies anything. Could someone please explain?