Tracking user activity for the app

I have developed a machine learning application hosted on Streamlit, which requires users to log in with their username and password. I have shared the app link with a few friends to gather feedback. However, I would like to know how I can track which specific users have accessed my app.

In the analytics section, I can see the names of several viewers, but they do not match the friends I shared the app with.

Could you please provide guidance on how to effectively monitor user access to my application?

If it was me, I would connect to some sort of database Connect to data sources - Streamlit Docs, and when someone logs in, add a row to the database with their username.