added authentication to client