Refactored 'addMembers' action handler.