Authentication failing

Hi All,
I am trying to script the login process for Hotmail.

This is what I came up with so far:
execAndWait document.getElementById(“i0116”).value=‘’
execAndWait document.getElementById(“idSIButton9”).click()

However, it is giving me the screenshot of ‘Enter a valid email’. If I try this in Developer console using JS, it works and goes to the next page, asking for password, but not on WebpageTest. its not working. Any ideas?