fixed post returning true on error