building deleteUser function