The question is,
Show that $$\sum_{x \in \mathbb{F}_p} \left(\frac{x^2-1}{p}\right) = -1$$ where the operation $\left(\frac{x}{p}\right) = \pm 1$ if $x$ is a quadratic residue/non-residue and $0$ otherwise.
I was able to follow the argument given here Prove that $\sum_{X=0}^{p-1} \left(\frac{X^{2}+A}{p}\right)=-1$ for the $\left(\frac{-1}{p}\right) = -1$ case, but I'm not sure how to make progress on the other case (i.e $p\equiv 1$ mod $4$).
One thought I had that I couldn't quite make work was to try and use the formula $\left(\frac{x}{p}\right) \equiv x^r$ mod $p$, where $r = (p-1)/2$ and then expanding using the binomial theorem.
Any thoughts or hints would be greatly appreciated!