Add password generator function