removed the need to pass the validator as closure use parameter