You can use the function of the MDL update item. Since you created the loginForm dynamic mode, you can update it in the scope using
componentHandler.upgradeElement(loginForm); //or, componentHandler.upgradeDom(loginForm); //however, I suggest using jQuery to upgrade multiple if you are adding more than one componentHandler.upgradeElements($('.mdl-textfield').get());
This will get all the mdl-textfield objects and update them (if not updated earlier)
source share