Further client-side (and a little server-side) checks in edit event.