I am a new in MVC Programming in asp.net.I created application in mvc4 with entity framework.My problem is that i can't validate input entry.It always return true
.My index.aspx code here
<% using (Html.BeginForm("Validate","Transport")){%>
<table id="tblogin">
<tr>
<th style="text-align:right">Email</th>
<td>
<%=Html.TextBox("email") %>
<%= Html.ValidationMessage("email", "*")%>
</td>
</tr>
<tr>
<th style="text-align:right">Password</th>
<td>
<%=Html.TextBox("pswd") %>
<%= Html.ValidationMessage("pswd", "*")%>
</td>
</tr>
<tr>
<th></th>
<td align="right"><input style="" type="submit" value="login" ></td>
</tr>
</table>
<%} %>
My model class is
[Required]
public string email { get; set; }
[Required]
public string pswd { get; set; }
debugg image here