I want to create a basic login function in my app using FirebaseDB (preferred) or TinyWebDB. I am currently using the TinyDB in my app but that is limited to only offline registrations. Once the app is uninstalled, all data gone. So I want to make the login function online. I only want basic functionalities like login, registration, and some basic user data. I've researched a lot, but I'm only finding too complex ones which could be hard for me to implement as I'm a beginner. I am uploading a screenshot of my current code, and the doubt I have is, at what point after confirming the username from the database should the password be authenticated? Also, how will the database recognize which user's details to access?