 
 module.exports = class RegisterInlineForm extends LoginViewInlineForm
 
-  EMAIL_VALID    = no
-  USERNAME_VALID = no
+  EMAIL_VALID    = yes
+  USERNAME_VALID = yes
   ENTER          = 13
 
   constructor:(options={},data)->

      tagName : 'strong'
      partial : 'username.koding.io'

    @on "SubmitFailed", (msg)=>
      # if msg is "Wrong password"
      #   @passwordConfirm.input.setValue ''
      #   @password.input.setValue ''
      #   @password.input.validate()

      @button.hideLoader()


    input.clearValidationFeedback() for input in inputs
    super

  # usernameCheck:(input, event, delay=800)->
  #   return if event?.which is 9
  #   return if input.getValue().length < 4

  #   KD.utils.killWait usernameCheckTimer
  #   input.setValidationResult "usernameCheck", null
  #   name = input.getValue()

  #   if input.valid
  #     usernameCheckTimer = KD.utils.wait delay, =>
  #       # @username.loader.show()
  #       KD.remote.api.JUser.usernameAvailable name, (err, response) =>
  #         # @username.loader.hide()
  #         {kodingUser, forbidden} = response
  #         if err
  #           if response?.kodingUser
  #             input.setValidationResult "usernameCheck", "Sorry, \"#{name}\" is already taken!"
  #             USERNAME_VALID = no
  #         else
  #           if forbidden
  #             input.setValidationResult "usernameCheck", "Sorry, \"#{name}\" is forbidden to use!"
  #             USERNAME_VALID = no
  #           else if kodingUser
  #             input.setValidationResult "usernameCheck", "Sorry, \"#{name}\" is already taken!"
  #             USERNAME_VALID = no
  #           else
  #             input.setValidationResult "usernameCheck", null
  #             USERNAME_VALID = yes


  getEmailValidator: ->
