I currently programming a Blog App for android. But I have problems with the firebase database. I want to add the user input from the TextInputLayout to the firebase database.

When the user create an account, is the "name" field in the database, like that: 

> 
> android.support.design.widget.TextInputEditText{1785539 VFED..CL.
>  ........ 0,0-966,118}
> 
> 
> 

I dont know why and I spend 2 days to solve the problem - but no idea.
Everything else works fine.

```
mToolbar = (Toolbar) findViewById(R.id.register_toolbar);
    setSupportActionBar(mToolbar);
    getSupportActionBar().setTitle("New Account");
    getSupportActionBar().setDisplayHomeAsUpEnabled(true);

    mRegProgress = new ProgressDialog(this);

    mAuth = FirebaseAuth.getInstance();

    mDisplayName = (TextInputLayout) findViewById(R.id.reg_display_name);
    mEmail = (TextInputLayout) findViewById(R.id.reg_email);
    mPassword = (TextInputLayout) findViewById(R.id.reg_password);
    mCreateBtn = (Button) findViewById(R.id.reg_create_btn);

    mCreateBtn.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {

            String display_name = mDisplayName.getEditText().toString();
            String email = mEmail.getEditText().getText().toString();
            String password = mPassword.getEditText().getText().toString();

            if (!TextUtils.isEmpty(display_name) || !TextUtils.isEmpty(email) || !TextUtils.isEmpty(password)) {

                mRegProgress.setTitle("creating user");
                mRegProgress.setMessage("please wait...");
                mRegProgress.setCanceledOnTouchOutside(false);
                mRegProgress.show();

                register_user(display_name, email, password);
            }
        }
    });
}

private void register_user(final String display_name, String email, String password) {

            mAuth.createUserWithEmailAndPassword(email, password).addOnCompleteListener(new OnCompleteListener<AuthResult>() {
                @Override
                public void onComplete(@NonNull Task<AuthResult> task) {

                    if (task.isSuccessful()) {

                        FirebaseUser current_user = FirebaseAuth.getInstance().getCurrentUser();

                        String uid = current_user.getUid();

                        mDatabase = FirebaseDatabase.getInstance().getReference().child("Users").child(uid);

                        HashMap<String, String> userMap = new HashMap<>();
                        userMap.put("name", display_name);
                        userMap.put("status", "Hey and welcome");
                        userMap.put("image", "default");
                        userMap.put("thumb_image", "default");

                        mDatabase.setValue(userMap);

```

Hope someone can help.

Best regards - Limit