Change required_login to login_required.