Added console log for post data.