...
With this design class diagram you can see the interactions happening between different classes of our program. The logincontroller loginService makes sure it knows everything that has to do with logging in. The resource sends the requests to the controller and recieves data back from the controller.
The resource classes makes uses of the Response interface. This needs to happen, so that the user knows what went wrong.