fix a few bugs on the legalprofile edit page (wip)