Added example for authenticate method.