the code I am using is:
$crud = new grocery_CRUD();
$crud ->set_table('user')
->set_subject('Usuario')
->columns('firstname','lastname','organizationid')
->add_fields("firstname", "initial", "lastname", "lastname2", "username", "password", "email", "phone", "organizationid", "accesslevel", "active", "themeid")
->set_relation("organizationid", "organization", "name")
->set_relation("themeid", "theme", "name")
->set_rules("firstname", "Nombre", "required")
->set_rules("lastname", "Apellido", "required")
->set_rules("username", "Usuario", "required")
->set_rules("organizationid", "Organización", "required")
->set_rules('email', 'Email', 'required|valid_email|is_unique[user.email]')
->set_rules('password', 'Contraseña', 'required|sha1');
$output = $crud->render();
It seems it that groceryCRUD does not take the filtered data from the codeigniter validator or I am missing something in the code.
Thanks in advance for your help.