title: C# Simple login interface with SQL data model
body: <p>So i'm doing a course on C#, where i´ve been tasked to build an app for a fictive company.
  In the app needs to be a login screen, i´ve been struggling with getting it to accept my correct login parameters (See code). Instead it says every entry is incorrect.</p>
  <p>Can any of you spot the immediate issue with my code?</p>
  <pre><code>        private void button1_Click(object sender, EventArgs e)
      {
          logindbEntities context = new logindbEntities();
          if (textBox1.Text!=string.Empty || textBox2.Text!=string.Empty)
          {
              var user = context.AdminLogin.Where(a =&gt; 
  a.Full_name.Equals(textBox1.Text)).First();
              if (user != null)
              {
                  if (user.Password.Equals(textBox2.Text))
                  {
                      success s1 = new success();
                      s1.Show();
                  }
                  else
                  {
                      MessageBox.Show(&quot;password is not correct&quot;);
                  }
              }
              else
              {
                  MessageBox.Show(&quot;username is not registered&quot;);
              }
          }
          else
          {
              MessageBox.Show(&quot;username &amp; password are required&quot;);
          }
  </code></pre>
  <p>EDIT: Have me excused please, i´ve tried to edit the post to suit the guidelines better.</p>