added functionality to ensure passwords are valid in validatorTrait with tests on concrete class