Added the user creation and email queueing functionality.