made send registration email function