Today, I was playing with numbers and I found this: $$\begin{align} \ln(1) = 0 \Rightarrow \ln((-1)^2) = 0 \Rightarrow 2\ln(-1) = 0 \Rightarrow 2\pi i = 0 \Rightarrow \boxed{i = 0} \end{align}$$
Apart from this I found another proof: $$\begin{align} \ln(1) = 0 \Rightarrow \ln(e^{2\pi i}) = 0 \Rightarrow 2\pi i = 0 \Rightarrow \boxed{i = 0} \end{align}$$
This obviously is not true and I myself don't know what's the flaw in this proof. Any help/hint is appreciated
Edit : My guess is that I am treating $i$ as a variable rather $i = \sqrt{-1}$. Is this logic correct?
Thanks