logs out on confirmation.