Fixed issue when user logged in after logging out