Modified logic.php to generate pwd and modified index.php to get the generated password