Error checking added to update goal