Membership not allows duplicate pairs

@akshar-raaj Membership not allows duplicate pairs now. Please check it.