created language to locale hashmap called LanguageMap.
updated register activity.