Added validation to editors