Add email sending, finish registration