Creat register controller.