Add `this.validateform()` here so it's only called once.