Added confirm email sending. Confirm email is not yet fully functional however.