client connects with credentials