Avoid call to document.validate() twice on save
Fixed bug on reusing user after further db open calls