updated createComment action in CommentsController