Added a check to make sure a user is logged in befor they are allowed to create a comment