fix error when getting to login screen from direct edit link