makes sure that the correct user is destroyed