Fixed bugs in email verification.