Add registration server side code.