A little patch to previous commit, add socket emit in delete user as well