private string get_random_data(IDataRepository db)
        {
            string random_data = getString();
            int i = 0;
            while (!db.check_for_unique_data_string(random_data))
            {
                random_data = getString();
                i++;

                // stop infinint loop incase we run out of possible login combinations
                if (i > 100)
                {
                    return random_data;
                }
            }
            return random_data;
        }