add formset validation, fix js