add login example to api documentation