Wait for element on xk6 browser

While putting sleep the script works, but waitforLoadState is not working.

image

Scenario:
After entering the user name, and clicking the next button it shows a password element.

Guide me on this.