Add regist user_name and user_id function