Added authentication support in client