set current user id after login and register