Open the Login.aspx.cs file. Update the Login method by adding the highlighted areas shown here: protected void LogIn(object sender, EventArgs e) { if (IsValid) .