Fixed errors on user logout action.