Sanity check the attribute-value pair getting from DB