Validator class to validate form post values in a simple way.