added authentication requirement for adding/updating post
added a mixin to abstract the shared code between BlogPost CreateView and UpdateView