Input fields can not recognize or identify the text if it is written using "inject js" activity

Hi everyone,

I am using “inject js” activity to login to Spotify, but it shows like there is no text written inside the fields when clicking the login button

See this picture where I am using javascript code to login:

This when nothing is written in the input fields:

This when the username or password is not correct:

Thanks for your help