Base PHP Validator Class