Testing post failure

Trying to recreate a post failure and display an error message.
Still trying to recreate post errors

Changed type of ajax call from GET to POST in the create post function