I was reading through the core layer and found a variable for determining if a viewer was logged in or not, and the comments suggested we make a link to the login page if they aren't. I took it a step further and made a simple login form, but ran into an interesting security issue.
function print_module_login() {
if (not viewer_logged_in()) {
open_module("login","login", "
http://www.livejournal.com/login.bml");
"""