Added color validation to global color save function