Changed flow for saving & validating.

Won't perform extra validation when document is unnamed.