Fixed user logout when session expired