It may not be the way you want to do it.
But it works.

In the root of the notebooks you place a dummie file.

When login in let the script search the file.

If excist file then .... else ....