fix login page cancel bug