New methods and constructor parameters validation.

New methods for settting and updating users' metadata, and to create
users.