Allow specifying custom format validator