Fix bug in user creation