Simple class to validate input