EditCtrl add validation to it

Previous the coed doesn't do valitation