Updated generatepw.php