fixing some stuff and preparing localization
fix login error