Changed the content type of the form to JSON