Added registration email sending.