Added some login calls and UserResource.