Fixed the POM file's dependencies according to what is provided and what
is not provided.
Fixed servlets redirecting. When deployed to tomcat through maven the
URL is not the same as deploying the webapp without maven.

You have to add in the request.getContextPath() to any redirected links
to ensure you dont flop to a link which doesn't exist.
Made multiple changes/additions. I created an index page (which is
simply the login page) for when the webapp is first accessed.

For the web.xml I made the appropriate changes to reflect that the index
page will be the welcoming page.

for the MainPage.js I had spent a long time trying to use dynamic URL's
similar to the changes made in the servlets. This would allow me to
change the package name without going through and changing the servlet
paths. This still needs to be fixed but I made a temporary fix by
hardcoding the link to the servlets.