extracting form objects and refactoring validators