used error code instead of string for login auth failure, and also added reason string to DDPAuthDelegate