Please help me comparison of input with a dataset

Hello, good afternoon, I am trying to make a kind of login within my web page, I have already created my collection with the Email and password fields, inside the page add some input corresponding to each field as well as a button that I want go to another page if the data is correct, so far I could connect my small login with the collection but I would like to know how I can compare the data entered with the data of my annexed collection capture of my collection and the fields from my login

They would be so kind to tell me the code to achieve it and if I was right to connect the fields with the collection, REALLY HELP ME !!

Why would you want this? Wix has this already built in (set the page to “Members”)? And your solution, doing this with datasets is so insecure, for your own protection I am not going to assist in this case.

It is that I only want a login connected and validated to a dataset, please help me, it is only for a school work

pleasse help me