Fixed user insert/update when user is not authenticated