send email invite : next put the email creation into a backgroun worker : then set up the custom routes and actions to create a doctor's account or sign-in as an existing doctor and create the association to the patient