Made icon validation dependend on config