validate edited