fix #6309: check for existence of user before saving a new user