Improve changePassword.php error handling