Login records locales refactor