generate user key when adding user