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

This avoid some undefined errors when calling AccountsTemplates.setFieldError