error check for invalid MPK