add validator for initialize method