Submit posts

Added code to submit posts.