Fix email verification when user is logged out

Thanks, siddiki @ HackerOne and daksh @ HackerOne!