Make invalidation criteria formset dynamic