Entity key validation