Why when I remove php extension then php not working. What's it solution?
You should set a password in the same query where you confirm an email:
$con->query("UPDATE users SET isEmailConfirmed=1, token='', Password='{$hashedPassword}' WHERE Email_ID='$email' ");