change validate_sam to return bool