Setup signup_code in a consistent manner