return resource on login