fix login/index issue