removed session_reg because it breaks the onetime link