Could the "AutoValidator" class be added to the XenForo options form (admin template: option_edit) ? It would avoid to reconfigure and retype every fields if an error has been made.