How to retrieve the autho's username on an author archive page

Like the title states, Please note: the username, the name people log-in with.
I’ve tried adding this to my functions.php:
$authorusername = get_the_author_meta(‘user_login’);
And then calling upon it with: {echo:authorusername}, that didn’t work.

Solved:

function get_author_username() {
  $author_username = get_the_author_meta('user_login');
  return $author_username;
}

And dynamic data tag: {echo:get_author_username}