Added support to change user nick.

* Added some security constraints and validations.