createUser() needs to return something; the user object or false

createUser() needs a return value to distinguish successful user creation from a incomplete one. Otherwise the user management will always output an error if a new user gets created.

cc @icewind1991