Added validation on CN