validate candidate name against the length