email attendee after registration in register function