Validation library for PHP inputs