Can clearly see that you used AI for your question. Nonetheless, after using type into for UserName and Password, and pressing the login button. You can add a "Element Exists" to check if you are on the homepage before proceeding with the other steps.
You can check if either the page logo exist or a specific text. Note, the next click activity you use after clicking login would automatically check if the page finished loading.