I completely agree with you, but I haven't included that portion of the example because everyone saves their users in the database differently. Even so, the complete code may be found in the GitHub repository, which I have contributed. You are welcome to look through the repository.
Ashfiquzzaman Sajal
Web Developer
Your post is quite informative! It might be even more helpful if you could provide code examples for saving user information in a database and managing sessions.