User won't get authenticated with private route

Hi there,

I have a webapp and have a problem with private / secured routes within my App.js.

I read and executed this tutorial for creating an authentication within my react app:

Until the section “After creating these components, you can update the Home component to enable users to log in:” it was simple to implement the code. In my App.js I created an <PrivateRoute> component where only authenticated users can access the app. But everytime I want to login I will be redirected to the login page instead of the {DefaultLayout} component.
Here an extract from my App.js:

What I’m doing wrong?
Or do you need more information?

Thanks in advance