set up email object in database to send registration email