Add password validator.