To prevent use of Guest Sale (which allows sales to proceed without a specific customer account), you can turn this option off entirely.
Office > Back Office Settings > Setup Options.