Fixed bug where username existance was not checked properly when user is created.