fixed error when clicking login link