Forcing refresh after login/logout

Tests fixed