#JC-1211 Fixed error messages in case of authentication failure.