implement post functionality, read posts not implemented yet, add some input checking