return object from set validation so messages can be shown.