Added authentication to server routes.