registers with user id