Updates to validation resource and some shock functions in resource.pm