mapping validation errors into form when submitted with ajax from a dialog. closes #5