Added a check to make sure non-author users cannot post