added creating ang sending email to user