Fixed variable name in JSON of post request & typo

Tried a different way to call a variable to see if it would make the
json body work on submission. Also fixed a typo.