added authentication

added authentication for editing post and created comment form