fix bug on email after registration