set lastLogin upon login. add search resource.