Use the login form with the new Layout does not work

You can change it to this:

    if not in_designer:
      anvil.users.login_with_form()

and import this

from anvil.designer import in_designer

See Meredydd’s post:

3 Likes