adding new post functionality (step 8) done