Main page loads, shows no username if logged out

shows ugly session ID (I believe) when logged in. Have to make it show
@user.username if logged in, but "Log In" text if not logged in.