changed validate in addannotation