Added post data validation