fix emp code login problem