fixed localhost email confirmation bug