Added a custom method to validate a value instead of using KVC so a class can override it