Changes made by Kelvin Kosbab (kelvin@kosbab.com). On login clear matches in case of bad match that infects the app. Various bug fixes.