Add handlebars for referral templates: because...why not?
Use good ole' jquery validate