replace deprecated method

validateValue() is deprecated. Replaced with validate()