fixing validator lambda