Vaadin UI/Route problems


I’m trying to build a small project that does some routing.
When I launch the program it takes me to my homepage (the empty router) with two different options.
One of the options is a non-secured with no login required while the other requires username and password. The functionality works, I can’t access the route that requires a login without actually logging in. The problem is, I’m using a Login Overlay and when it closes, I get redirected to the empty route. The thing is, I can see in my searchbar that it for a half second goes to localhost:8080/movie (which is correct) but then goes back to the main page. Now I can click back and it will take me to the correct page.

What could be the issue here? Adding some pictures aswell.