private void button1_Click(object sender, EventArgs e) { //login string HashPass; using (MD5 md5Hash = MD5.Create()) { HashPass = GetMd5Hash(md5Hash, txtPass.Text); } UsersBLL _usersobj = new UsersBLL(); DataTable dt = _usersobj.LOGIN(textBox1.Text, HashPass); if (dt.Rows.Count > 0) { LogPanel.Hide(); Guid _G = new Guid(dt.Rows[0]["ID"].ToString()); LogedIN.Current_USER = _G; label1.Text = "Welcome " + dt.Rows[0]["FirstName"]; } else { label5.Text = "Username or Password is incorrect"; } }