adds register_form hook