Updated the poll creation page so it converts the form into a JSON string to be sent