Fix bug where upgrading a guest account to a full user would fail when account validity is enabled.