A simple validation library in PHP