Main login links should redirect correctly

Should fix that issue with the login_required view.

@rlr r?