Fixing a method call when retrieving the errors of the validation