Correctly handle POST data