Adding client authentication