Update domain for outgoing email.
Fix registration flow bugs.