title: Check if email and password are correct Firebase
body: <p>I'm currently working on an app that shows users in a listview and when you click on a user, you get to see the details. </p>
  
  <p>Now you can 'add' users by filling in editText field with his or her info. Now I want that only the person himself can add his or her info. I added a <code>editText</code> asking for your email and an <code>editText</code> asking for a password. These credentials should match an account previously created in the app in Firebase. I do not seem to accomplish it. </p>
  
  <p>This is my code:</p>
  
  <pre><code>String email2 = mEmailField.getText().toString();
  String pw = mPassword.getText().toString();
  
  firebaseAuth.signInWithEmailAndPassword(email2, pw).addOnCompleteListener(new OnCompleteListener&lt;AuthResult&gt;() {
      @Override
      public void onComplete(@NonNull Task&lt;AuthResult&gt; task) {
  </code></pre>
  
  <p>When the user fills in his email and password everything works, but when the incorrect password is entered, it works as well and that should not happen. What did I do wrong?</p>