add validation for adding member