protected void Login(object sender, EventArgs e) { UserVM vmModel = new UserVM(); Response.Cookies["Email"].Value = Username.Text.Trim(); Response.Cookies["Password"].Value = password.Text.Trim(); vmModel.Email = Username.Text.Trim(); vmModel.Password = password.Text.Trim(); BusinessUser autn = new BusinessUser(); bool msg = autn.UserAuthentication(vmModel); if (msg) { Response.Redirect("WineWS.aspx"); } else { Label1.Visible = true; Label1.Text = "Login ID and Password is invalid."; } }