The validation success will actually only run if at least one validation fails but that one succeeds. The solution is to just use the form submit as the condition for the success message like:
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
?>
<div class="alert-success col-md-6">Password Updated Successfully</div>
<?php
}
?>