private void Login() { string encodedPassword = ManageSystem.EncryptPassword(txtPassword_Login.Text); if (ManageSystem.CheckLoginIfValid(txtUsename_Login.Text, txtPassword_Login.Text)) { if (ManageSystem.CheckSignIn(txtUsename_Login.Text, encodedPassword)) { InitLoadingForm(ManageSystem.GetUserID(txtUsename_Login.Text)); } else { MessageBox.Show("Username or Password is not correct", "Notification"); } } else { return; } }