Help me in my app please

I am creating my application and whenever on the login page it cannot look for data in the database. The registration is normal, it goes through completely, but when I log in the app cannot find it and change the page. Anyone who can help me I would appreciate it