fixing a minor issue with minchars validation