Missing end in generate_passwords