added logging when there is a post data