'Android Studio button crashing

Good day, ma'am/sir. I would like to ask how to fix this crash thing in Android Studio on my Bluestacks emulator; the problem is the button, every time I click it the application automatically closes. How do I fix this? Below is the image. Thank you in advance.

app layout

after clicking

Code snippet

Login page login page

Register page Register page

After signing in

AndroidManifest



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source