Validation Log In

The ode i try to use is:

function validate()
{
var email = document.getElementById("email).value;

if (email=="wrong" ) 

}