integrate forms to form.html.erb

Also sanitize previously registered plans correctly