heroku was showing ActionView:Template:Error for username, so added if statement in the post.creator.username block