Modifies displayServerErrorsWithCustomFunctions and validateWithCustomFunctions to use custom error clearers