fixing a bug that prevented the adding of email accounts