Does not check if the parameter to match to is undefined, as it was causing false validation errors when the comparing field was in error