users: get by id and logout