Update task authentication check logic fix