Members Only Area/ Login

Hello, I basically want to create a members area/ login however, all the tutorials I have seen need to have the user enter an email and password. Is there a way or work around where I can the user can input an “account number/code” instead of an email and a password? This would then link to their relevant page/ profile. Also, can you set it up so say the account numbers/codes beginning with ABC could go to one page and account numbers/codes beginning with DEF go to a completely different page.

If anyone could help that would be great. I am a complete beginner at code so if you could explain in basic terms that would be helpful. :grinning:

I do not think that this is possible.