Fix log in page not opening when no existing window