var auth = FirebaseAuth.getInstance()
      auth.createUserWithEmailAndPassword(bi.txtEmail.text.toString(), bi.txtPassword.text.toString())
          .addOnCompleteListener { task ->
              if (task.isSuccessful) {
                  var firebaseUser = auth.currentUser
                
                  // CometChat Auth will be here.
                  
              } else {
                  Snackbar.make(bi.root, "Authentication failed!", Snackbar.LENGTH_SHORT).show()
              }
          }