logging user state on error