Adding @login_required restrictions