basic function: user can submit posts