added success messages for post
fixed false error by returning valid json