issues with streamlit-authenticator

I followed below link to create a login page for my streamlit application.

but i am getting below error all the time. can someone help please. HAve been struggling like anything.

i m using 0.4.2 version of streamlit-authenticator

name, authentication_status, username = authenticator.login(‘Login’, ‘main’)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/homebrew/lib/python3.11/site-packages/streamlit_authenticator/views/authentication_view.py”, line 329, in login
raise ValueError(“Location must be one of ‘main’ or ‘sidebar’ or ‘unrendered’”)
ValueError: Location must be one of ‘main’ or ‘sidebar’ or ‘unrendered’

I believe that the API for this library has changed since the article was written 3 years ago.

Take a look at the docs here. The first argument it expects is the location where it was previously a name for the form then location.