title: CodeIgniter form validation valid_email not working
body: <p>I am trying to use CodeIgniter's form validation class. I've used the "valid_email" parameter, as can be seen from the code below, but even when an invalid email address is entered it still passes the validation check. I tested with the string: <strong>testing123</strong></p>
  
  <pre><code>public function login()
  {   
      $this-&gt;form_validation-&gt;set_rules('authEmail', 'trim|required|valid_email|xss_clean');
      $this-&gt;form_validation-&gt;set_rules('authPassword', 'trim|required');
  
      $email = $this-&gt;input-&gt;post('authEmail');
      $password = $this-&gt;input-&gt;post('authPassword');
  
      if($this-&gt;form_validation-&gt;run() === FALSE) {
          $this-&gt;session-&gt;set_flashdata('formValidationError',  validation_errors('&lt;p class="error"&gt;', '&lt;/p&gt;'));
          redirect('/');
      } else {
          // Begin authentication
      }
  }
  </code></pre>
  
  <p>Anyone have any idea what I'm doing wrong or if this is a CodeIgniter issue?</p>
  
  <p>To note, I am setting a flashdata session as opposed to using:</p>
  
  <pre><code>&lt;?php echo validation_errors(); ?&gt;
  </code></pre>
  
  <p>... this is because I am doing a redirect back to the homepage (which is the login page as it's a private site).</p>