Depending on your taste, you could write this if-then-else as `return username and keyring`.