new type of password validator for measuring the password quality