added missing validation for mode in the resource
updated README