adds model-based form validation to agent search. TODO - UI styling for previously selected form items doesn't persist