make sure primary membership is deleted correctly

If deleting the primary membership then we have to remove the values in
the inputs further up the page otherwise this is recreated