Sign in error handler

Allows handling sms code re-input on error
Send encrypted message error handler
Merge pull request #2 from nKey/error-callbacks

Additional query error callbacks