I want to prove that there is an infinite number of primes $p$ for which the congruence $(p-3)x^{p-3}\equiv 1\pmod p$ has a solution. Using Dirichlet's theorem, I got that there is an infinite number of primes of the form $p=6k+1$, and because $(1/p)=1$, we get that there is an $x$ with $x^2\equiv 1\pmod p$ so that $x^{2(3k-1)}\equiv 1\pmod p$, whice gives $x^{p-3}\equiv 1\pmod p$.
How do I proceed?