Adding validation around priority and cores