added validation for membership of projects