Change the dependency of validator to ActiveModel