fixed delete account bug, now logs out before deleting