6
I'm not sure how to display blocks outside of the areas where they are normally displayed. The only thing the above code is good for, is for insertion into a table into your custom or modified theme.html files for more customisation without the use of an entire block and it's code.
If I am following you correctly, do you want to just have a simple login option along the top of your page, and a user name for users that are logged in? If so, then just copy paste that code into a table in your theme.html file, which will be in the root of the thmes folder under the same name, if you follow what I mean.
The code I showed you isn't block code, it's the content in which the block uses to display the desired results, which in this case is the login area. Although minor, there is a difference with the terminology.
Hope this helps,
Cheers!