add code to send email to particpant and login user both