add check "if the user is in the team of this task". add error code