Added support for returning error messages from custom grant validator