generating post id on server