added create and delete functions for post and users