fix routine to JSONize form data because I am an idiot