fixed update_user method
merging serhiy hotfix