refactored team invite and added validation for 4 person teams