added validation to invite template