PHP Validation class example using OOP