trying to fix email confirmation bug