How do you retrieve data : (Error)Attempt to get item number 1 of a list of length 0

i have a problem at my mobile app in login page. every time i click login the error message showed up. my friend said it cannot retrieve data because of my array. and then he also didn't know how to solve it.it would be a great help if anyone can help me.

Do the values ​​stored in tinyDB contain "|"? I think that before the conditional block where you compare data from tinyDb with text, you should add a condition that checks if the list is of length 2.