Fix bug in ValidatePrefs(a comma was misplaced) + add more logging