validate labels before save