Retrieve query var within functions.php

function gqv() {
    echo get_query_var('user_login');
}
add_action('parse_query', 'gqv');