added sendEmail functionality to process new user