     terms = template.find("input[name=terms]").checked
 
     if not Apollos.validate.isEmail email
+      template.hasErrors.set true
       emailTemplate = template.email.get()
       emailTemplate.methods.setStatus true
       return
 
     if not Apollos.validate.isEmail email
+      template.hasErrors.set true
       emailTemplate = template.email.get()
       emailTemplate.methods.setStatus true
       return
 
     if not password
+      template.hasErrors.set true
       passwordTemplate = template.password.get()
       passwordTemplate.methods.setStatus "Password cannot be empty", true
       return
 
     if not terms
+      template.hasErrors.set true
       termsTemplate = template.terms.get()
       termsTemplate.methods.setStatus "You must accept the terms and conditions", true
       return

        else
          template._.createAccount email, password

  "click [data-forgot-password]": (event, template) ->

    if event.target.dataset?.forgotPassword


    email = event.target.value.toLowerCase()

    if not Apollos.validate.isEmail email
      template.hasErrors.set true

    Apollos.user.getAccountType email, (error, accountType) ->
      if error
