This makes `$username` global, since it's being accessed in a separate (now non-local) function.