bug fix - modal log in, category prefs JS