Refactor login by ma nhan vien.