add methods for registering custom types/validators