Fixed registering to connect addresses
LoginServlet and refactored RegisterServlet