# EditText problem getting same values

**URL:** <https://discuss.kotlinlang.org/t/edittext-problem-getting-same-values/5574>\
**Category:** Android\
**Created:** [November 27, 2017, 6:03pm UTC](https://discuss.kotlinlang.org/t/edittext-problem-getting-same-values/5574 "2017-11-27T18:03:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![noman.bin.iqbal](https://avatars.discourse-cdn.com/v4/letter/n/8e8cbc/32.png) [@noman.bin.iqbal](https://discuss.kotlinlang.org/u/noman.bin.iqbal)\
**Post date:** [November 27, 2017, 6:03pm UTC](https://discuss.kotlinlang.org/t/edittext-problem-getting-same-values/5574/1 "2017-11-27T18:03:03Z")

</div>

I have following code

```
nextBTN.setOnClickListener {
            if (validateInfo()) {
                (activity).apply {
                    next(1)
                    user.let {
                        it.firstName = userName.text.toString()
                        it.lastName = lastName.text.toString()
                        it.email = email.text.toString()
                        it.password = password.text.toString()
                    }
                }
            }

```

Now for the fist time it works fine like  
` email.text.toString() == n@n.com`  
but when i try this second time and if i change the value on email edit text field to [n11@n.com](mailto:n11@n.com) the email will be same  
` email.text.toString() == n@n.com`  
i know it works when i give the `this@reference` to main class. but wants to learn why is this not working
