fixes #5571 Create User - Improve error message

Fixed the issue and pushed the code for review, please check it.