Add registration form class and register template.