updated registration form/template/view function