Log user id when registrating