Why dose this not save : Html:

What the code needs to do is to save the informacion but it dose not!
Please help with this
<form>




<h1>Email</h1>




<input type="email" id="email2" required><br><br>




<h1>Password</h1> 




<input type="password" id="myInput">




<input type="checkbox" onclick="myFunction()">Show Password<br><br>




</form>




<input type="Submit" onclick="signin()">

Javascript code:



function signin(){




	var y = document.getElementById("email2");




	var x = document.getElementById("myInput");




	if(y == email2 && x == myInput ){



		
		window.open("account.html");



				
	}else{




		
		window.open('sign in.html');



		
	}