Methods to encode user entity for registering or updating users

Methods helping to update or register user