adding logic to validate input before building JSON object
http request added to form to bypass user sign-in