Ensure document displays only after login