fix using validation method as object