bugfix - build allowed message hash at beginning of #valid? for logging purpose