fixes some login session issues