Adding validation Code/Rule

Welcome to the community, @mokech! Is this something you are looking for that has been discussed in the community before: