quick fix to pass entire map into validation fn