better error message for incorrect grant id