reduce redundancy between query and search
query is now search
set lastLogin upon login. add search resource.