added validation to all swarm inputs