private void button1_Click(object sender, EventArgs e) { string password = pass.Text; MD5 md5Hash = MD5.Create(); //MessageBox.Show(MD5Hash.GetMd5Hash(md5Hash, password)); if (loginDB.checkUser(username.Text, MD5Hash.GetMd5Hash(md5Hash, password))) { if (!loginDB.checkAdmin(username.Text)) { Clientes currentCLiente = loginDB.getCliente(username.Text); Session.setCliente(currentCLiente); } nextStep(); } else { username.Text = ""; pass.Text = ""; MessageBox.Show("Not Valid user"); } }