Added the tasks relation validation in the deleteUser function