как сделать проверку ввода в поля Имя, Фамилия, Эл. Почта, пароль?
<!doctype html>
<html>
<head>
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.1.min.js"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.13.1/jquery.validate.js">
</script>
<link rel="stylesheet" type="text/css" href="new.css" />
</head>
<body>
<div class="container">
<div><div class="texts"> Name </div> <input type="text" name="Name" class="inp" id="text" /> </div>
<div><div class="texts"> Surname </div> <input type="text" name="Surname" class="inp" id="text1"/></div>
<div><div class="texts"> City </div> <input type="text" name="City"class="inp" id="text2"/></div>
<div><div class="texts"> Email </div> <input type="text" name="Email" class="inp" id="text"/></div>
<div><div class="texts"> Password </div> <input type="password" name="Pass" class="inp"/></div>
<div><div class="texts"> Repeat password </div> <input type="password" name="rpt" class="inp"/></div>
</div>
<div class="submit">
<input type="button" name="button" value="register" class="button"/>
</div>
<script>
$(document).ready(function(){
$('.button').click(function(){
var name =$("#text").val();
if (name=="aaa") {alert('asdasd');}
else { $("#text").css('border', 'red 1px solid');}
});
});
</script>
</body>
</html>