A lightweight validation framework