use getpass to resolve username