If I understand correctly, you want to verify that new_password and confm_password are equal. You can do this:
if ($new_password !== $confm_password) {
} else {
}
Or put it the other way around if you wish:
if ($new_password === $confm_password) {
} else {
}