Object-oriented form validator