Avoiding problems with authentication