Added registration email functionality.