Error message not appear

So I am creating this sign in log in system for my apps using firebase as my data storage cloud. The problem is the error message showing incorrect password and username does not appear when use enter wrong password. Instead, it appeared when both are entered correctly.

Could someone help me with this issues. :frowning:

Try like this (also shows one correct method for switching screens):