fixed submitting of a post