add validation in membership