add_action('login_head', 'wpe_custom_login_scripts', 1);
function wpe_custom_login_scripts()
{
	echo '<script>
        document.addEventListener("DOMContentLoaded", function(event) { 
			//Add Placeholder
            document.getElementById("user_login").setAttribute( "placeholder", "username" );
			document.getElementById("user_pass").setAttribute( "placeholder", "password" );
			
			//Remove the labels
			var input = document.querySelectorAll(".forgetmenot input")[0];
            var label = document.querySelectorAll(".forgetmenot label")[0]; 
            var text = document.querySelectorAll(".forgetmenot label")[0].innerHTML.replace(/<[^>]*>/g, "");
            label.innerHTML = "";
        
            label.appendChild(input); ;
            
            label.innerHTML += "<strong>"+ text +"</strong>";
            
            labels = document.querySelectorAll("label");
            
            for (var i = labels.length - 1; i >= 0; i--)
            {
                var child = labels[i].firstChild, nextSibling;
                while (child) {
                    nextSibling = child.nextSibling;
                    if (child.nodeType == 3) {
                        child.parentNode.removeChild(child);
                    }
                    child = nextSibling;
                }
            }
        });
    </script>';
}