I'm building an app with a login screen, if the user provides a true login and password, I want him to be redirected to Home screen if not to Error Screen.

All data about user and pw will be stored in a sharepoint list:
Sharepoint listname = user_logins

Screen buildes and textinput

Code i'm trying to use =
If(!IsBlank(Lookup(users_logins;Title= TextInput1.Text and Password= TextInput2.Text).Title;Navigate(Home);Navigate(ErrorScreen))

Any help with the code would be great, thx