add example for real authentication with server