Adding Validity class to check the validity of various items.