   @generateAddCredentialFormFor = (options) ->
 
     { provider, requiredFields, defaultTitle, defaultValues, callback } = options
+
+    defaultValues = []  unless defaultValues
 
     fields           =
       title          :

    if advancedFields = currentProvider.advancedFields
      advancedFields.forEach (field) ->
        fields[field] =
          label       : field.capitalize()
          placeholder : field
          cssClass    : 'advanced-field'

      buttons['Advanced Mode'] =
        style    : "solid medium"

      _field = fields[field] = _.clone currentProvider.credentialFields[field]

      _field.required     = yes
      _field.defaultValue = defaultValues[field] or ''


      if _field.type is 'selection'
