# Authentication and Authorization - 3 - Submitting the Registration Form \[Question\]

**URL:** <https://forum.codewithmosh.com/t/authentication-and-authorization-3-submitting-the-registration-form-question/4146>\
**Category:** React\
**Created:** [April 15, 2021, 6:19am UTC](https://forum.codewithmosh.com/t/authentication-and-authorization-3-submitting-the-registration-form-question/4146 "2021-04-15T06:19:32Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![SAM](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/sam/32/167_2.png) [@SAM](https://forum.codewithmosh.com/u/SAM)\
**Post date:** [April 16, 2021, 6:00pm UTC](https://forum.codewithmosh.com/t/authentication-and-authorization-3-submitting-the-registration-form-question/4146/10 "2021-04-16T18:00:46Z")

</div>

That’s nonsense. Spreading creates shallow copies! And you knew that two month ago:

> [@Is this spread neccessary?](https://forum.codewithmosh.com/t/is-this-spread-neccessary/1807/3):
>
> This is to avoid changing the state directly. If we don’t spread, we will be changing the state directly. So we need to spread to a new object. Trust me on this

---

_[View the full topic](https://forum.codewithmosh.com/t/authentication-and-authorization-3-submitting-the-registration-form-question/4146)._
