save the user id of the active user when logging in