If you don't have many different usernames/passwords, it's easy to do like this: you compare the username/pw that user gave to ones in database, and if
given username = certain username in db
given password = certain password in db
Then you direct the user to their own pages, which url can be stored to db as well and read from there same time than user and pw.
Did you understand anything? 🙂