title: Firebase Realtime database not showing in console
body: <p>I'm trying to get the user id from the Firebase Auth of Email/Password Verification and it doesn't show in the Firebase Database.</p>
  
  <p>Here is my code for the DriverLogin.class:</p>
  
  <pre><code>public class DriverLogin extends AppCompatActivity {
  
      private static final String TAG = "EmailPassword";
  
      private EditText mEmail;
      private EditText mPass;
  
      private FirebaseAuth mAuth;
      private FirebaseAuth.AuthStateListener firebaseAuthListener;
  
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_driver_login);
  
          mAuth = FirebaseAuth.getInstance();
          firebaseAuthListener= new FirebaseAuth.AuthStateListener() {
              @Override
              public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) {
                  FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();
                  if(user != null){
                      Intent intent = new Intent(DriverLogin.this,DriverMain.class);
                      startActivity(intent);
                      finish();
                      return;
                  }
              }
          };
  
          //editText
          mEmail = findViewById(R.id.DriverEmail);
          mPass = findViewById(R.id.DriverPass);
          //Btn
  
          findViewById(R.id.DriverSign).setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  signUp(mEmail.getText().toString(), mPass.getText().toString());
              }
          });
  
          findViewById(R.id.DriverLogbtn).setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  signIn(mEmail.getText().toString(), mPass.getText().toString());
              }
          });
  
      }
  
  
      //CreateAccount with Email and Password
      private void signUp(final String email, final String password) {
          Log.d(TAG, "CreateAccount:" + email);
          if (!validateForm()) {
              return;
          }
  
          mAuth.createUserWithEmailAndPassword(email, password).addOnCompleteListener(this, new OnCompleteListener&lt;AuthResult&gt;() {
              @Override
              public void onComplete(@NonNull Task&lt;AuthResult&gt; task) {
                  if (task.isSuccessful()) {
                      Log.d(TAG, "createUserWithEmail:success");
                      Toast.makeText(DriverLogin.this, "Registered Successfully",
                              Toast.LENGTH_SHORT).show();
                  } else {
                      String user_id = mAuth.getCurrentUser().getUid();
                      DatabaseReference driverDb = FirebaseDatabase.getInstance().getReference().child("Users").child("Driver").child(user_id);
                      driverDb.setValue(true);
                      Toast.makeText(DriverLogin.this, "Something went wrong",
                              Toast.LENGTH_SHORT).show();
                  }
              }
          });
      }
  
  
      //---------------------------------------------LOGIN------------------------------------//
      //Login Existing Account
      private void signIn(final String email, final String pass) {
          Log.d(TAG, "CreateAccount:" + email);
          if (!validateForm()) {
              return;
          }
  
          mAuth.signInWithEmailAndPassword(email, pass).addOnCompleteListener(this, new OnCompleteListener&lt;AuthResult&gt;() {
                      @Override
                      public void onComplete(@NonNull Task&lt;AuthResult&gt; task) {
                          if (task.isSuccessful()) {
  
  
                              Log.d(TAG, "signInWithEmail:success");
  
                              FirebaseUser user = mAuth.getCurrentUser();
                              Toast.makeText(DriverLogin.this, "Logged in Successfully", Toast.LENGTH_SHORT).show();
  
  
                          } else {
  
                              // If sign in fails, display a message to the user.
  
                              Log.w(TAG, "signInWithEmail:failure", task.getException());
  
                              Toast.makeText(DriverLogin.this, "Authentication failed.",
  
                                      Toast.LENGTH_SHORT).show();
                          }
                          // [END_EXCLUDE]
                      }
                  }
          );
      }
  
  
      @Override
          protected void onStart() {
              super.onStart();
              mAuth.addAuthStateListener(firebaseAuthListener);
      }
      @Override
      protected void onStop() {
          super.onStop();
          mAuth.removeAuthStateListener(firebaseAuthListener);
      }
  
      //textfield validations
      private boolean validateForm() {
  
          boolean valid = true;
  
  
          String email = mEmail.getText().toString();
  
          if (TextUtils.isEmpty(email)) {
  
              mEmail.setError("Required.");
  
              valid = false;
  
          } else {
  
              mEmail.setError(null);
  
          }
  
  
          String password = mPass.getText().toString();
  
          if (TextUtils.isEmpty(password)) {
  
              mPass.setError("Required.");
  
              valid = false;
  
          } else {
  
              mPass.setError(null);
  
          }
          return valid;
  
      }
  
  
  }
  </code></pre>
  
  <p>There's no error popping up but I cant write data in the firebase database.</p>
  
  <p>I already enabled the Email/Password Authentication and my rules is:</p>
  
  <pre><code>{
    "rules": {
      ".read": "auth != null",
      ".write": "auth != null"
    }
  }
  </code></pre>
  
  <p>and my build.gradle:app</p>
  
  <pre><code>dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])
      implementation 'com.android.support:appcompat-v7:27.1.1'
      implementation 'com.android.support.constraint:constraint-layout:1.1.0'
      implementation 'com.google.firebase:firebase-core:15.0.2'
      implementation 'com.google.firebase:firebase-database:15.0.0'
      implementation 'com.google.firebase:firebase-auth:15.1.0'
      implementation 'com.google.android.gms:play-services-auth:15.0.1'
      implementation 'com.github.bumptech.glide:glide:4.7.1'
      implementation 'com.android.support:design:27.1.1'
      annotationProcessor 'com.github.bumptech.glide:compiler:4.7.1'
      testImplementation 'junit:junit:4.12'
      androidTestImplementation 'com.android.support.test:runner:1.0.2'
      androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  }
  
  apply plugin: 'com.google.gms.google-services'
  </code></pre>