Fixes to RegisterUserController and to RegisterUserUI.
Add records to the database.