fixed bug where app thinks a new user logged in if app is started again under a new window if the orginal window app was still open