Solve issue #210 'Canceling new user creation causes error' and more

This solve Issue #210 and an error caused when a invalid new user name is given.