Validator and Constraints

i can remove password condition from this constraints and use passwordConstraints, only on $confirmPassword place  $_POST['password']