title: The email address is already in use by another account (Auth With Email/Password Firebase)
body: <p>I am using Email/Password Auth From Firebase. And I handle The exception message.
  and I First Registered and After That Go To Login Activity But When I Write The Email I am Registered With It .. I can not log in And Get This Error "The email address is already in use by another account".</p>
  
  <p>In Firebase Panel I have the Email That Register By It BUt I can Not Login With It.</p>
  
  <p><a href="https://i.stack.imgur.com/c7Gf2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/c7Gf2.png" alt="enter image description here"></a></p>
  
  <p>this Is My code Too...First For <strong>Registered</strong>:</p>
  
  <pre><code>  private lateinit var firebaseAuth: FirebaseAuth
  
      /*Firebase Auth*/
          firebaseAuth = FirebaseAuth.getInstance()
  
  /*Register With Firebase Auth*/
          fun onRegisterBtnClick(view: View) {
  
  
  
              val dialog: ProgressDialog = ProgressDialog.show(
                  this@StudentRegisterActivity, getString(R.string.please_wait),
                  getString(R.string.processing), true
              )
  
              firebaseAuth.createUserWithEmailAndPassword(stuEmail, stuPass).addOnCompleteListener {
                  dialog.dismiss()
                  if (it.isSuccessful) {
                      val snackbar: Snackbar = Snackbar.make(
                          binding.coordinator,
                          getString(R.string.register_succesed), Snackbar.LENGTH_SHORT
                      )
                      snackbar.show()
  
  
                      /*Intent to Login Activity*/
                      val intent = Intent(this@StudentRegisterActivity, StudentLoginActivity::class.java)
  
                      startActivity(intent)
  
                  } else {
                      Log.e(TAG, it.exception.toString())
                      val snackbar: Snackbar = Snackbar.make(
                          binding.coordinator,
                          it.exception!!.message!!, Snackbar.LENGTH_SHORT
                      )
                      snackbar.show()
                  }
              }
  
  
          }
  </code></pre>
  
  <hr>
  
  <p>and <strong>LOGIN</strong></p>
  
  <pre><code>    private lateinit var firebaseAuth: FirebaseAuth
  
  
          /*Firebase Auth*/
          firebaseAuth = FirebaseAuth.getInstance()
  
    fun onLoginBtnClick(view: View) {
  
              val dialog: ProgressDialog = ProgressDialog.show(
                  this@StudentLoginActivity, getString(R.string.please_wait),
                  getString(R.string.processing), true
              )
  
              firebaseAuth.createUserWithEmailAndPassword(stuEmail, stuPass).addOnCompleteListener {
                  dialog.dismiss()
                  if (it.isSuccessful) {
                      val snackbar: Snackbar = Snackbar.make(
                          binding.coordinator,
                          getString(R.string.register_succesed), Snackbar.LENGTH_SHORT
                      )
                      snackbar.show()
  
                      /*Intent to Login Activity*/
                      val intent = Intent(applicationContext, BatchesStudentActivity::class.java)
                      startActivity(intent)
  
                  } else {
                      Log.e(TAG, it.exception.toString())
                      val snackbar: Snackbar = Snackbar.make(
                          binding.coordinator,
                          it.exception!!.message!!, Snackbar.LENGTH_SHORT
                      )
                      snackbar.show()
                  }
              }
  
  
          }
  </code></pre>