Complete the function of delete user