Search is done with at least 3 letters
Fix user's groups update and clean code.