Fetch the token when clicking username

The token is created on need basis by a call to /api/token. So make that
request when clicking username because the user may not have the token
yet created and then the modal would show nothing.