fix email confirmation bug