API-1306: Improved the error message displayed when authentication fails...

... during a password grant