When signing up throws an error, check that error.details is an object before guessing fields errors from it. If error.details is a string, just show it instead of error.reason.
This is useful for Accounts.validateNewUser which only allow customization of the details property
parenthesis stupid error
Simplified by just checking typeof error.details. You can customize Accounts.validateNewUser error.reason. My mistake.
Merge pull request #13 from djhi/master

Checking typeof error.details before settings fields errors when signing in fail