t $this->form_validation->set_rules('password','password','trim|required|min_length[4]|max_lenght[32]');
I have to work with codeIgniter form validation but it's not work max_length.
hay you just mistake in your script change max_lenght[32]
to max_length[32]