How to correctly write an if else for a button in android studio?

Hi all,
I have to make a small login app for my assignment where if you input the correct credentials and click the login button it takes you to a new activity, however if its inputted wrongly, a toast message should appear. I can’t seem to get it to work.

The code is written at the mainactvity.kt file