Fix #1058

Avoid duplicate entry in user cache, UI show an error is the user
already exist (api can still override existing user).