add uid to registration