     @completeLoginPromiseChain(promise,callback,errback)
 
   completeLoginPromiseChain: (promise, callback,errback)=>
-    callback = callback || -> 
-    errback  = errback  || -> 
+    callback = callback || ->
+    errback  = errback  || ->
 
     p = promise.then @api.refreshUser, @emitLoginFailure
     p.then callback, errback

      # Hull.login({login:'user@host.com', password:'xxxx'})
      # Hull.login({access_token:'xxxxx'})

      # Early return since we're leaving the page.
      return postForm(@config.orgUrl+'/api/v1/users/login', 'post', options) if options.strategy=='redirect'
      promise = @api.message('users/login', 'post', _.pick(options, 'login', 'password', 'access_token'))

    @completeLoginPromiseChain(promise,callback,errback)

    # UserName+Password
    # Hull.login({login:'abcd@ef.com', password:'passwd', strategy:'redirect|popup', redirect:'...'})
    throw new Error('Seems like something is wrong in your Hull.login() call, We need a login and password fields to login. Read up here: http://www.hull.io/docs/references/hull_js/#user-signup-and-login') unless opts.login? and opts.password?

  isSafari = navigator.userAgent.indexOf('Safari') > -1 && navigator.userAgent.indexOf('Chrome') == -1
  if isSafari
    opts.strategy ||= 'redirect'

  if isMobile()
    # We're on mobile, setup defaults for Touch/Redirect login
