add notice type validation (#28)