added test to make sure language input and flag selector are the same, and no unusual characters or mixed keyboard inputs