I was reading the solution to 3.2-4 on this blog (cropped image pasted here)

notice the person says $\frac{(\lg n)^{\lg n}}{n} = \frac{n^{\lg \lg n}}{n}$
What log law justifies that?
Also, is it correct that it's an error to where they simplify $e^{\lg n}$ to $n$ in the denominator?