make password gen func useful by adding a wrapper that inserts it