Updated register controller and views.