Nit: You could probably ditch the `email_` prefixes here or even nix all the temporary variables.