put in more validation and rewrote code to validate editing tasks