add ability to go from json post data to form post data - see app.js and app2.js - also see .login method for post details