update password equality test method