title: Codeigniter form validation set message
body: <p>A quick one guys, I have the same (ish) form validation rule for the username and email input fields respectively, and i need to set the message of the rules individually. How do i do that?</p>
  
  <pre><code>**CODE**
  
  $this-&gt;form_validation-&gt;set_rules('username','Username', 'trim|required|xss_clean|min_length[2]|is_unique[users.username]');
  $this-&gt;form_validation-&gt;set_rules('email','Email', 'trim|required|valid_email|xss_clean|is_unique[users.email]');
  </code></pre>
  
  <p>I'm trying to override the message for "is_unique" here,</p>
  
  <pre><code>$this-&gt;form_validation-&gt;set_message('is_unique','Username taken');
  </code></pre>
  
  <p>how do i set the message for email as well?</p>