Small refactoring about the user creation.