implement client side verify