added some simple data validation to the get/set affinity options