Started on unit test for login with junit and modified some of the server code