char validation working