This is what I came up with so far:
navigate https://login.live.com/
execAndWait document.getElementById("i0116").value='abc@hotmail.com'
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?