add bootstrap to generate_password.php
extract logic to separate module