In the LoginServlet is calling 2 times at the method "findUserByUsername". The first time it doesn't save the User object because it is called in an if statement and the second time save the User object.
[x] Before call the if statement get the User object and save it. In the if statement use the retrived object and remove the second call.
In the LoginServlet is calling 2 times at the method "findUserByUsername". The first time it doesn't save the User object because it is called in an if statement and the second time save the User object.