minor cleanup
imrelp: emit error message on authentication error