Added global var.
Corrected bug in email 2fa.