Fixed task validation and editing