validity checks and overall custom_attribute validity