Prevent adding wrong comment to the database