[galaxy-dev] [hg] galaxy 2849: Refactored the form validation code