Add logging for login error