Add validation get function and remove format parameter.