added validations to memberships