refactoring method generateForOutput and renaming it into copyUserWithoutPassword