Added Authentication and edited view of posts