fix not working 'require_login'