added validation for candidate scoring