Add validation of annotations.