login should function now in both in frontend and backend when any window is opened.