Fixed POST data pass-through and enhanced error handling on POST