public LoginToken LoginTokenOrDefault(LoginRecord loginRecord, string password)
        {
            if (loginRecord == null)
            {
                return(null);
            }
            var isValid = _passwordService.ValidatePassword(loginRecord.Password, password);

            return(isValid ? _tokenGenerator.CreateLoginToken(loginRecord) : null);
        }