Fixed validation for editing tasks and rewards