Added login_required to limit access to views.