Added login_required decorator