Get rid of global variable myname.
Implement revoke_creds.