Improve error handling for create-user

[finishes #80042984]