     {createButton} = form.buttons
     @clearSuggestions()
 
-    {DomainOption, domainName, regYears} = form.inputs
+    {DomainOption, domainName, regYears, domains} = form.inputs
     splittedDomain    = domainName.getValue().split "."
     domain            = splittedDomain.first
     tld               = splittedDomain.slice(1).join('')
+    domainName        = domainName.getValue()
 
     domainOptionValue = DomainOption.getValue()
 

        else
          @showSuccess()

    else # groupSubDomain



  clearSuggestions:-> @suggestionBox?.destroy()


            domain.setDomainCNameToProxyDomain()

    else if domainOptionValue is 'existing'
      @createDomain {domainName, regYears:0}, (err, domain)=>
        createButton.hideLoader()
        if err
          warn err
          return notifyUser "An error occured. Please try again later."
        else
          @showSuccess()

    else # create a subdomain
      subDomain = domainName.replace /\.{1,}(?=[^.]*$)/, ''
      domainName = "#{subDomain}.#{domains.getValue()}"

      @createDomain {domainName, regYears:0}, (err, domain)=>
        createButton.hideLoader()
        if err
          warn err
