I need to prove: If $p$ is a prime number congruent to $5 \mod 8$, and $\left(\frac np\right)= 1$, then
either $ [n^{(p+3)/8}] ^2 ≡ n\bmod p$
or $ [n^{(p+3)/8}((p-1)/2)! ]^2 ≡ n\bmod p$
I am not really sure how to proceed, although I have tried checking the cases $n= 1$ and $n = -1$, I have also tried various things with the definition of a Legendre symbol.
You can argue as follows.
We know that $n$ is a quadratic residue. The question is whether $n$ is a quartic residue or not.