If $n$ is a constant and if there exists a unique value of $m$ for which the quadratic equation $x^2 + 5mx + (7m-n+1) = 0$ has one real solution, then find $n$.