           address: address
       dfr = api.request()
       dfr.done =>
-        $(@ui.input).val api.result
+        result = api.result
+        if _.any result
+          @setValidForm true
+          $(@ui.input).val result
+        else
+          @setValidForm false
       dfr
 
+    setValidForm: (valid = true) ->
+      if valid
+        @ui.row
+          .removeClass('invalid')
+          .addClass('valid')
+      else
+        @ui.row
+          .removeClass('valid')
+          .addClass('invalid')
+
+    locationChange: ->
+      @ui.row
+        .removeClass('valid')
+        .removeClass('invalid')
+
     locationFound: ->

      @

    initTriggers: ->
      @on 'location:submit', @locationSubmit
      @on 'location:geolocate', @locationGeolocate
      @on 'location:found', @locationFound

    onRender: ->


  class LocationFormView extends BaseItemView

    options:
      inputDelay: 5000
      geolocateDelay: 4000

    template: template

    el: '#location-form'

    ui:
      form: 'form'
      row: '.row'
      input: '#location'
      geolocate: '#geolocate'
      play: '#location-submit'
