adding authored_by? method to post model