Added class validation on agent creation