Adds first complete working version of user registration dialog.