now reads post data properly.