Component for validation of codeigniter forms