title: W/System: Ignoring header X-Firebase-Locale because its value was null
body: <p>Im very new to android studio. I'm trying to make a signup page with email and password authentication with Firebase. Howerver, whenever I try to click the sign up button it gives:</p>
  <blockquote>
  <p>W/System: Ignoring header X-Firebase-Locale because its value was null</p>
  </blockquote>
  <p>Can anyone tell me why?</p>
  <p>Here is the SignupActivity.java file</p>
  <pre><code>package com.example.traintrack;
  
  import android.app.Activity;
  import android.content.Intent;
  import android.graphics.Color;
  import android.os.Bundle;
  import android.text.TextUtils;
  import android.util.Log;
  import android.view.View;
  import android.widget.AdapterView;
  import android.widget.ArrayAdapter;
  import android.widget.Button;
  import android.widget.EditText;
  import android.widget.Spinner;
  import android.widget.TextView;
  import android.widget.Toast;
  
  import androidx.annotation.NonNull;
  import androidx.appcompat.app.AppCompatActivity;
  
  import com.google.android.gms.tasks.OnCompleteListener;
  import com.google.android.gms.tasks.Task;
  import com.google.android.material.textfield.TextInputLayout;
  import com.google.firebase.auth.AuthResult;
  import com.google.firebase.auth.FirebaseAuth;
  import com.google.firebase.auth.FirebaseUser;
  
  import java.util.regex.Pattern;
  
  public class SignupActivity extends AppCompatActivity implements AdapterView.OnItemSelectedListener {
      FirebaseAuth fAuth;
      Button signupBtn;       // Signup Button
      private String userType;
      private TextInputLayout textInputFullName;
      private TextInputLayout textInputEmail;
      private TextInputLayout textInputPassword;
      private boolean submitted = false, validUser = false;
      Spinner spinner;
      public static final Pattern VALID_EMAIL_ADDRESS_REGEX =
              Pattern.compile(&quot;^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,6}$&quot;, Pattern.CASE_INSENSITIVE);
  
      private String email;
      private String password;
  
  
      //Validating the signup page
      private boolean validateName(){
          String name = textInputFullName.getEditText().getText().toString().trim();
  
          if (name.isEmpty()){
              textInputFullName.setError(&quot;Field can't be empty&quot;);
          } else{
              textInputFullName.setError(null);
              return true;
          }
  
          return false;
      }
      private boolean validateEmail(){
  
          String email = textInputEmail.getEditText().getText().toString().trim();
  
          if (email.isEmpty()){
              textInputEmail.setError(&quot;Field can't be empty&quot;);
          } else if (!VALID_EMAIL_ADDRESS_REGEX.matcher(email).find()){
              textInputEmail.setError(&quot;Please enter a valid email&quot;);
          } else {
              textInputEmail.setError(null);
              return true;
          }
          return false;
      }
  
      private boolean validatePassword(){
          String password = textInputPassword.getEditText().getText().toString().trim();
          if (password.isEmpty()){
              textInputPassword.setError(&quot;Field can't be empty&quot;);
          } else if (password.length() &lt; 8){
              textInputPassword.setError(&quot;Password must have at least 8 characters&quot;);
          } else {
              return true;
          }
          return false;
      }
  
      //public void confirm(View button){
  
      //}
  
  
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.signup);
  
          spinner = findViewById(R.id.signup_type);
          ArrayAdapter&lt;CharSequence&gt; adapter = ArrayAdapter.createFromResource(this, R.array.user_types, android.R.layout.simple_spinner_item);
          adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
          spinner.setAdapter(adapter);
          spinner.setOnItemSelectedListener(this);
  
          textInputFullName = findViewById(R.id.signup_fullname);
          textInputEmail =  findViewById(R.id.signup_email);
          textInputPassword =  findViewById(R.id.signup_password);
          signupBtn = findViewById(R.id.signup_confirm);
  
  
          //Firebase, Sign up by clicking the button
          fAuth = FirebaseAuth.getInstance();
  
          if (fAuth.getCurrentUser() != null)  // when the current user object is already present
            {
               startActivity(new Intent(getApplicationContext(), MainActivity.class));  //back to main page
               finish();
            }
  
          //register the user in firebase
          signupBtn.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  password = textInputPassword.getEditText().getText().toString().trim();
                  email = textInputEmail.getEditText().getText().toString().trim();
  
                  // I have moved the validation here since this is the button for click
                  submitted = true;
                  if (!validateName() || !validateEmail() || !validatePassword() || !validUser){
                      Toast.makeText(SignupActivity.this, &quot;Cannot create account&quot;, Toast.LENGTH_SHORT).show();
                      return;
                  }
  
  
                  fAuth.createUserWithEmailAndPassword(email,password).addOnCompleteListener(new OnCompleteListener&lt;AuthResult&gt;() {
                      @Override
                      public void onComplete(@NonNull Task&lt;AuthResult&gt; task) {
                          if (task.isSuccessful()) //successfully created the user
                              {
                              Toast.makeText(SignupActivity.this, &quot;Account created!&quot;, Toast.LENGTH_SHORT).show();
                              startActivity(new Intent (getApplicationContext(), MainActivity.class));
                              } else {
  
                              Toast.makeText(SignupActivity.this, &quot;Error !&quot;, Toast.LENGTH_SHORT).show();
                          }
                      }
                  });
  
              }
          });
  
  
  
  
      }//OnCreated Closing
  
  
      @Override
      public void onItemSelected(AdapterView&lt;?&gt; parent, View view, int position, long id) {
          String type = parent.getItemAtPosition(position).toString();
          if (type.equals(getResources().getStringArray(R.array.user_types)[0]) &amp;&amp; submitted){
              TextView errorText = (TextView)spinner.getSelectedView();
              errorText.setError(&quot;&quot;);
              errorText.setTextColor(Color.RED);
              errorText.setText(&quot;Please select a user type&quot;);
          } else {
              validUser = true;
              userType = type;
          }
      }
  
      @Override
      public void onNothingSelected(AdapterView&lt;?&gt; parent) {
  
      }
  
  }  //Ending
  '''
  </code></pre>