Improved error messages

@jonathanong fixed a mistyped err & also added an error message for when people encounter problem where their credentials are bad. Can you merge and del branch if this is cool?