How to create one login page for multiple tables ?/

how do i create , one login page which can handle different user from different tables ? or create an event that on sign up it can populate two tables simultaneously from the same set of data?

In login form model, you can add extra field say type and during login process, do send that field in your’s submitted data.

In login form model, use that type value to understand which table you want to use for login and what set of data you want to update