added authentication method on the client side