ensuring attribute values are retrieved correctly in validation types