The answer to both questions is that you need to handle the MessageSent event and check the value of Success parameter. If it is false then LastException will hold the error message.
The username and password can only be checked when a message is sent.