added validation for member