           else
             showPriceModal registerTheDomain
 
-
-
     else if domainOptionValue is 'existing'
       @createDomain {domainName, regYears:0, domainType:'existing'}, (err, domain)=>
         createButton.hideLoader()

class DomainCreationForm extends KDTabViewWithForms

  domainNameValidation =
    rules      :
      required : yes
      regExp   : /^([\da-z\.-]+)\.([a-z\.]{2,6})$/i
    messages   :
      required : "Enter your domain name"
      regExp   : "This doesn't look like a valid domain name."

  constructor:->

    {nickname, firstName, lastName} = KD.whoami().profile

    domainOptions     = [
      { title : "Create a subdomain", value : "subdomain" }
      { title : "I want to register a domain", value : "new" }
      { title : "I already have a domain", value : "existing" }
    ]

    super
      navigable                       : no

              registerButton.hideLoader()

        showPriceModal = (successCallback) ->
          KD.remote.api.JDomain.getTldPrice tld, (tldPrice)-> 
            registerButton.hideLoader()
            modal           = new KDModalView
              title         : "Confirm Domain Price for #{domainName}"
