Added fixes to the code for creating users. Note we don’t try to email a new user unless they have an email address, and that’s currently allowed to be nullable