fix no link error with login false