The problem here is that the exponential function on the complex plane is not injective. That is, even if ea = eb, we cannot infer that a = b. Analogously, even if sin(0) = sin(\pi), we cannot infer that 0 = \pi.
Probably a typo there. a and b differ by a multiple of 2 i pi, i.e. a = b + 2k...