Added authentication to server.