changed authentication key to user id