Post requests now working correctly