A simple class to validate forms